package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-10-21 15:08
 */
public class Test02 {
    public static void main(String[] args) {
//        System.out.println(1+2);
//        //字符串拼接
//        System.out.println("aaa"+"bbbbbb");
//        System.out.println(1+2+"aaaa");
//        System.out.println("aaaa"+1+2);

        Scanner scanner=new Scanner(System.in);
        //使用变量存储若干课程的成绩，计算总分平均分
        System.out.println("输入java成绩");
        int java = scanner.nextInt();
        System.out.println("输入html成绩");
        int html = scanner.nextInt();
        System.out.println("输入sql成绩");
        int sql = scanner.nextInt();
        int sum=sql+html+java;
        int avg=sum/3;
        System.out.println("java成绩:"+java);
        System.out.println("sql成绩:"+sql);
        System.out.println("html成绩:"+html);
        System.out.println("总分:"+sum);
        System.out.println("平均分:"+avg);
    }
}
